

let str = `
    {
        "name" : "asd"
    }
`

const Enums = {
    name: "名称"
}

function parseCN(str) {
    for (let key in Enums) {
        let reg = new RegExp(`"${key}"`, "ig");
        if(reg.test(str)){
            str = str.replace(reg, Enums[key])
        }
    }
    return str
}

console.log(parseCN(str));